package com.yuexiao.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @ClassName:Tool
 * @Auther: YUEXIAO
 * @Description: 工具类
 * @Date: 2022/8/10 17:58
 * @Version: v1.0
 */
public class Tool {

    //BCryptPasswordEncoder加密
    public static String getEncoder(String password) {
        return new BCryptPasswordEncoder().encode(password);
    }

    public static void main(String[] args) {
        System.out.println("getEncoder(\"123456\") = " + getEncoder("123456"));
    }
}
